<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript">

//页面加载完成事件
onload=function(){
	d1.innerText="abc";
}
</script>
</head>
<body>
<div id="d1"></div>
<select onchange="changefn()" id="s1">
<option>请选择</option>
<option>刘备</option>
<option>张飞</option>
<option>关羽</option>
<option>黄忠</option>
<option>赵云</option>
</select>
<script type="text/javascript">
//值改变事件
function changefn(){
	alert(s1.value);
}
</script>
</body>
</html>